package cn.edu.bjtu.toychange.service.impl;

import java.util.ArrayList;

import cn.edu.bjtu.toychange.dao.MessageDao;
import cn.edu.bjtu.toychange.entity.Message;
import cn.edu.bjtu.toychange.service.MessageListService;

public class MessageListServiceImpl implements MessageListService{
	private MessageDao messageDao;
	
	public MessageListServiceImpl() {
		messageDao = new MessageDao();
	}
	
	@Override
	public ArrayList<Message> getUserMessage(int userID) {
		// TODO Auto-generated method stub
		return messageDao.getUserMessages(userID);
	}

}
